import request from '@/utils/request'

// 导入所有模块
import community from './modules/community'
import product from './modules/product'
import orders from './modules/orders'
import cart from './modules/cart'
import user from './modules/user'
import message from './modules/message'
import shop from './modules/shop'

// 统一导出所有API模块
export default {
  community,
  product,
  orders,
  cart,
  user,
  message,
  shop,
  // 全局通用方法
  request,
  
  // 工具方法
  utils: {
    getHeaders: request.getHeaders,
    handleError: request.handleError
  }
} 